import ecs.core.Entity;
import ecs.core.Scene;
import ecs.net.components.*;
import ecs.net.systems.PackBufferInitSystem;
import ecs.net.systems.ReceiveDataSystem;
import ecs.net.systems.SendDataSystem;
import ecs.net.systems.SocketInitSystem;

public class EcsApplication {

    public static void main(String[] args) {

        Scene m = new Scene();
        Entity client = new Entity();
        AddressComponent address = new AddressComponent();
        address.host("127.0.0.1");
        address.port(54321);
        client.add(address);
        client.add(new SocketComponent());
        client.add(new PackBufferComponent());
        client.add(new SendDataComponent());
        client.add(new ReceiveDataComponent());

        m.add(new SocketInitSystem());
        m.add(new PackBufferInitSystem());
        m.add(new ReceiveDataSystem());
        m.add(new SendDataSystem());


        m.in(client);

    }
}
